package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Permission;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IPermissionService {

    void delete(Long id);

    List<?> list();

    //权限加载
    void reload();

    PageResult query(QueryObject qo);

    List<Permission> getPermissionByRoleId(Long id);

    List<String> getPermissionsByEmployeeId(Long id);
}
